//
//  DGGTelecomLoginViewController.h
//  DGGMobileLoginSDK
//
//  Created by dgg_hzk on 2019/12/16.
//

#import <UIKit/UIKit.h>

@class DGGAgreementListModel;

/**
* 电信授权认证协议
*/
@protocol DGGTelecomLoginDelegate <NSObject>

/**
 * 授权认证成功回调
 */
- (void)dgg_telecomLoginSuccess:(UIViewController *)viewController loginStatus:(NSInteger)loginStatus accessToken:(NSString *)accessToken;

/**
* 授权认证失败回调
*/
- (void)dgg_telecomLoginFailure:(UIViewController *)viewController loginStatus:(NSInteger)loginStatus errorInfo:(NSDictionary *)errorInfo;

/**
* 切换账号登录回调
*/
- (void)dgg_telecomLoginChangeType:(UIViewController *)viewController loginStatus:(NSInteger)loginStatus;

/**
* 取消登录回调
*/
- (void)dgg_telecomLoginCancelType:(UIViewController *)viewController loginStatus:(NSInteger)loginStatus;

@end

@interface DGGTelecomLoginViewController : UIViewController
/**
* 授权认证代理
*/
@property (nonatomic, weak) id<DGGTelecomLoginDelegate> delegate;

/**
* 授权认证回调
*/
@property (nonatomic, copy) void(^loginAuthResultBlock)(NSInteger loginStatus, NSString *accessToken, NSDictionary *errorInfo);

@end
